<template>
  <div id="app">
    <MyPage />
    <ModalManager ref="modalManager" />
  </div>
</template>

<script setup>
import { onMounted, getCurrentInstance } from 'vue';
import ModalManager from './components/common/modal-manager/index.vue';
import MyPage from './components/views/MyPage/MyPage.vue';

const { proxy } = getCurrentInstance();

onMounted(() => {
  // 挂载到全局
  window.$modal = proxy.$refs.modalManager;
});
</script>